// house_pkg/pages/building/index.ts
Page({
  data: {
    point: '',
    size: ''
  },

  onLoad({
    point
  }) {
    console.log(point);
    this.randomDigit(point)
  },
  randomDigit(point) {
    const size = Math.floor(Math.random() * 10) + 1
    this.setData({
      size,
      point
    })
  }
})